import request from '@/utils/request'

// 查询排课列表
export function listSortCurriculum(query) {
  return request({
    url: '/jiaopei/sortCurriculum/list',
    method: 'get',
    params: query
  })
}

// 查询排课详细
export function getSortCurriculum(id) {
  return request({
    url: '/jiaopei/sortCurriculum/' + id,
    method: 'get'
  })
}

// 新增排课
export function addSortCurriculum(data) {
  return request({
    url: '/jiaopei/sortCurriculum',
    method: 'post',
    data: data
  })
}

// 修改排课
export function updateSortCurriculum(data) {
  return request({
    url: '/jiaopei/sortCurriculum',
    method: 'put',
    data: data
  })
}

// 删除排课
export function delSortCurriculum(id) {
  return request({
    url: '/jiaopei/sortCurriculum/' + id,
    method: 'delete'
  })
}
